#ifndef _KEY_H
#define _KEY_H


#define	MESS_KEY1LONG_DOWN			1
#define	MESS_KEY1_UP	            2
#define	MESS_KEY1DOUBLE_UP			3

#define 	KEY_PORT			(GPIOC)
#define 	KEY1_PIN			(GPIO_PIN_13)


void KeyInit(void);
void KeyDet(void);
void CleatKeyState(void);

extern unsigned char KeyValue;

#endif


